<?php
session_start();
error_reporting(E_ALL);
include_once 'include_classes.php';

//Connection bdd
$db=new DbConnection();
$db->OpenConnection();

$login=$_GET['login'];
date_default_timezone_set('Europe/Berlin');
$date=date("Y");

        $sql='INSERT INTO COTISATION (annee,personne,validee) VALUES(\''.$date.'\',\''.$login.'\',0);';   
        $query= new DbQuery($db,$sql);
        $query->SendQuery();
        

    //Redirection
    echo '<meta http-equiv="Refresh" content="0;url=profil.php?login='.$login.'">';


?>
